package com.phone.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.phone.dao.ProductDao;
import com.phone.entity.Product;
import com.phone.entity.Store;
import com.phone.service.ProductService;
@Service
@Transactional
public class ProductServiceimpl implements ProductService {
	@Autowired
	private ProductDao productDaoImpl;
	@Override
	public List<Product> allproduct() {
		return productDaoImpl.allproduct();
	}
	@Override
	public Product seleproduct(Integer id) {
		return productDaoImpl.seleproduct(id);
	}
	@Override
	public void upproduct(Product product) {
		productDaoImpl.upproduct(product);
	}
	@Override
	public boolean delproduct(Integer id) {
		return productDaoImpl.delproduct(id);
	}
}
